package org.codeart.apipassenger.remote;

import org.codeart.common.dto.PassengerUser;
import org.codeart.common.util.R;
import org.codeart.common.dto.VerifyCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-passenger-user")
public interface ServiceUserClient {

    @PostMapping("/user")
    R<Void> login(VerifyCodeDTO verifyCodeDTO);

    @GetMapping("/user")
    R<PassengerUser> getUserByPhone(@RequestParam("passengerPhone") String passengerPhone);
}
